home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1994 April / Inside Multimedia CD-ROM (April 1994).iso / prg / gs / gssource.exe / UNIX-ANS.MAK < prev    next >
Encoding:
Makefile  |  1992-08-24  |  54.0 KB  |  1,574 lines

  1. #    Copyright (C) 1989, 1990, 1991 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/ANSI C/X11 configuration.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the installation commands and target directories for
  29. # executables and files.  Only relevant to `make install'.
  30.  
  31. INSTALL = install -c
  32. INSTALL_PROGRAM = $(INSTALL) -m 775
  33. INSTALL_DATA = $(INSTALL) -m 664
  34.  
  35. prefix = /usr/local
  36. exec_prefix = $(prefix)
  37. bindir = $(exec_prefix)/bin
  38. datadir = $(prefix)/lib
  39. gsdatadir = $(datadir)/ghostscript
  40.  
  41. # Define the default directory/ies for the runtime
  42. # initialization and font files.  Separate multiple directories with a :.
  43.  
  44. GS_LIB_DEFAULT=$(gsdatadir):$(gsdatadir)/fonts
  45.  
  46. # Define the name of the Ghostscript initialization file.
  47. # (There is no reason to change this.)
  48.  
  49. GS_INIT=gs_init.ps
  50.  
  51. # Choose generic configuration options.
  52.  
  53. # -DDEBUG
  54. #    includes debugging features (-Z switch) in the code.
  55. #      Code runs substantially slower even if no debugging switches
  56. #      are set.
  57. # -DNOPRIVATE
  58. #    makes private (static) procedures and variables public,
  59. #      so they are visible to the debugger and profiler.
  60. #      No execution time or space penalty.
  61.  
  62. GENOPT=
  63.  
  64. # ------ Platform-specific options ------ #
  65.  
  66. # Define the name of the C compiler.  If the standard compiler for your
  67. # platform is ANSI-compatible, leave this line commented out; if not,
  68. # uncomment the line and insert the proper definition.
  69.  
  70. #CC=some_C_compiler
  71.  
  72. # Define the other compilation flags.
  73. # Add -DBSD4_2 for 4.2bsd systems.
  74. # Add -DSYSV for System V or DG/UX.
  75. # Add -DSVR4 (not -DSYSV) for System V release 4.
  76. # The HP 400 seems to want -Aa -w -D_HPUX_SOURCE.
  77. # XCFLAGS can be set from the command line.
  78.  
  79. CFLAGS=-O $(XCFLAGS)
  80.  
  81. # Define platform flags for ld.
  82. # SunOS and some others want -X; Ultrix wants -x.
  83. # SunOS 4.n may need -Bstatic.
  84. # XLDFLAGS can be set from the command line.
  85.  
  86. LDFLAGS=$(XLDFLAGS)
  87.  
  88. # Define any extra libraries to link into the executable.
  89. # (Libraries required by individual drivers are handled automatically.)
  90.  
  91. EXTRALIBS=
  92.  
  93. # Define the include switch(es) for the X11 header files.
  94. # This can be null if handled in some other way (e.g., the files are
  95. # in /usr/include, or the directory is supplied by an environment variable).
  96. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  97. # not in $(XINCLUDE).
  98.  
  99. XINCLUDE=-I/usr/local/X/include
  100.  
  101. # Define the directory/ies for the X11 library files.
  102. # This can be null if these files are in the default linker search path.
  103.  
  104. XLIBDIRS=-L/usr/local/X/lib
  105.  
  106. # ------ Devices and features ------ #
  107.  
  108. # Choose the language feature(s) to include.  See gs.mak for details.
  109.  
  110. FEATURE_DEVS=filter.dev dps.dev level2.dev
  111.  
  112. # Choose the device(s) to include.  See devs.mak for details.
  113.  
  114. DEVICE_DEVS=x11.dev
  115.  
  116. # ---------------------------- End of options --------------------------- #
  117.  
  118. # Define the name of the makefile -- used in dependencies.
  119.  
  120. MAKEFILE=unix-ansi.mak
  121.  
  122. # Define the ANSI-to-K&R dependency (none for ANSI compilers).
  123.  
  124. AK=
  125.  
  126. # Define the compilation rules and flags.
  127.  
  128. CCC=$(CC) $(CCFLAGS) -c
  129.  
  130. # --------------------------- Generic makefile ---------------------------- #
  131.  
  132. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  133. # is generic.  tar_cat concatenates all these together.
  134. #    Copyright (C) 1990, 1991 Aladdin Enterprises.  All rights reserved.
  135. #    Distributed by Free Software Foundation, Inc.
  136. #
  137. # This file is part of Ghostscript.
  138. #
  139. # Ghostscript is distributed in the hope that it will be useful, but
  140. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  141. # to anyone for the consequences of using it or for whether it serves any
  142. # particular purpose or works at all, unless he says so in writing.  Refer
  143. # to the Ghostscript General Public License for full details.
  144. #
  145. # Everyone is granted permission to copy, modify and redistribute
  146. # Ghostscript, but only under the conditions described in the Ghostscript
  147. # General Public License.  A copy of this license is supposed to have been
  148. # given to you along with Ghostscript so you can know your rights and
  149. # responsibilities.  It should be in a file named COPYING.  Among other
  150. # things, the copyright notice and this notice must be preserved on all
  151. # copies.
  152.  
  153. # Partial makefile for Ghostscript, common to all Unix configurations.
  154.  
  155. # This part of the makefile gets inserted after the compiler-specific part
  156. # (xxx-head.mak) and before gs.mak and devs.mak.
  157.  
  158. # ----------------------------- Generic stuff ----------------------------- #
  159.  
  160. # Define the platform name.  For a "stock" System V platform,
  161. # use sysv_ instead of unix_.
  162.  
  163. PLATFORM=unix_
  164.  
  165. # Define the extensions for the object and executable files.
  166.  
  167. OBJ=o
  168. XE=
  169.  
  170. # Define the need for uniq.
  171.  
  172. UNIQ=
  173.  
  174. # Define the current directory prefix, shell quote string, and shell names.
  175.  
  176. EXP=./
  177. QQ=\"
  178. SHELL=/bin/sh
  179. SH=$(SHELL)
  180. SHP=$(SH) $(EXP)
  181.  
  182. # Define the compilation rules and flags.
  183.  
  184. CCFLAGS=$(GENOPT) $(CFLAGS)
  185.  
  186. .c.o: $(AK)
  187.     $(CCC) $*.c
  188.  
  189. CC0=$(CCC)
  190. CCD=$(CCC)
  191. CCINT=$(CCC)
  192. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  193. #    Distributed by Free Software Foundation, Inc.
  194. #
  195. # This file is part of Ghostscript.
  196. #
  197. # Ghostscript is distributed in the hope that it will be useful, but
  198. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  199. # to anyone for the consequences of using it or for whether it serves any
  200. # particular purpose or works at all, unless he says so in writing.  Refer
  201. # to the Ghostscript General Public License for full details.
  202. #
  203. # Everyone is granted permission to copy, modify and redistribute
  204. # Ghostscript, but only under the conditions described in the Ghostscript
  205. # General Public License.  A copy of this license is supposed to have been
  206. # given to you along with Ghostscript so you can know your rights and
  207. # responsibilities.  It should be in a file named COPYING.  Among other
  208. # things, the copyright notice and this notice must be preserved on all
  209. # copies.
  210.  
  211. # Generic makefile for Ghostscript.
  212. # The platform-specific makefiles `include' this file.
  213. # They define the following symbols:
  214. #    GS_INIT - the name of the initialization file for Ghostscript,
  215. #        normally gs_init.ps.
  216. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  217. #        initialization and font files at run time.
  218. #    DEVICE_DEVS - the devices to include in the executable.
  219. #        See devs.mak for details.
  220. #    DEVICE_DEVS2...DEVICE_DEVS5 - additional devices, if the definition of
  221. #        DEVICE_DEVS doesn't fit on one line.
  222. #        See devs.mak for details.
  223. #    FEATURE_DEVS - the optional features to include in the
  224. #        executable.  Current features are:
  225. #            dps - support for Display PostScript extensions.
  226. #            *** PARTIALLY IMPLEMENTED, SEE language.doc. ***
  227. #            level2 - support for PostScript Level 2 extensions.
  228. #            *** PARTIALLY IMPLEMENTED, SEE language.doc. ***
  229. #            compfont - support for composite (type 0) fonts.
  230. #            *** NOT IMPLEMENTED YET. ***
  231. #            filter - support for Level 2 filters (other than eexec,
  232. #            ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  233. #            and SubFileDecode, which are always included).
  234. #            ccfonts - precompile fonts into C, and link them
  235. #            with the executable.  In the standard makefiles,
  236. #            this is only implemented for a very few fonts:
  237. #            see fonts.doc for details.
  238. # It is very unlikely that anyone would want to edit the remaining
  239. #   symbols, but we describe them here for completeness:
  240. #    PLATFORM - a "device" name for the platform, so that platforms can
  241. #        add various kinds of resources like devices and features.
  242. #    QQ - a " preceded by whatever escape characters are needed to
  243. #        persuade the shell to pass a " to a program (" on MS-DOS,
  244. #        \" on Unix).
  245. #    XE - the extension for executable files (e.g., null or .exe).
  246. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  247. #    CCC - the C invocation for normal compilation.
  248. #    CCD - the C invocation for files that store into frame buffers or
  249. #        device registers.  Needed because some optimizing compilers
  250. #        will eliminate necessary stores.
  251. #    CC0 - a C invocation with the fewest possible flags.  Needed because
  252. #        MS-DOS limits the length of command lines to 128 characters.
  253. #    CCINT - the C invocation for compiling the main interpreter module,
  254. #        normally the same as CCC: this is needed because the
  255. #        Borland compiler generates *worse* code for this module
  256. #        (but only this module) when optimization (-O) is turned on.
  257. #    AK - if source files must be converted from ANSI to K&R syntax,
  258. #        this is ansi2knr$(XE); if not, it is null.
  259. #        If a particular platform requires other utility programs
  260. #        to be built, AK must include them too.
  261. #    UNIQ - null on systems that provide the uniq utility,
  262. #        uniq$(XE) on systems where we have to provide our own.
  263. #    SHP - the prefix for invoking a shell script in the current directory
  264. #        (null for MS-DOS, $(SH) ./ for Unix).
  265. #    EXPP, EXP - the prefix for invoking an executable program in the
  266. #        current directory (null for MS-DOS, ./ for Unix).
  267. #    SH - the shell for scripts (null on MS-DOS, sh on Unix).
  268. # The platform-specific makefiles must also include rules for creating
  269. #   ansi2knr$(XE) and genarch$(XE) from the corresponding .c files,
  270. #   and for making arch.h by executing genarch$(XE).  (This
  271. #   shouldn't really be necessary, but Turbo C and Unix C treat the -o
  272. #   switch slightly differently (Turbo C requires no following space,
  273. #   Unix C requires a following space), and I haven't found a way to capture
  274. #   the difference in a macro; also, Unix requires ./ because . may not be
  275. #   in the search path, whereas MS-DOS always looks in the current
  276. #   directory first.)
  277.  
  278. all default: gs$(XE)
  279.  
  280. mostlyclean realclean distclean clean:
  281.     rm -f *.$(OBJ) *.a core gmon.out
  282.     rm -f *.dev *.d_* arch.h gconfig.h obj*.tr lib*.tr
  283.     rm -f t _temp_* _temp_*.* *.map *.sym
  284.     rm -f ansi2knr$(XE) echogs$(XE) genarch$(XE) uniq$(XE)
  285.     rm -f gs$(XE) $(BEGINFILES)
  286.  
  287. # A rule to do a quick and dirty compilation attempt when first installing
  288. # Ghostscript.  Many of the compilations will fail: follow this with 'make'.
  289.  
  290. begin:
  291.     rm -f arch.h genarch$(XE) $(BEGINFILES)
  292.     make arch.h
  293.     - $(CCC) *.c
  294.     rm -f gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gsmisc.$(OBJ)
  295.     rm -f iccfont.$(OBJ) iinit.$(OBJ) interp.$(OBJ)
  296.  
  297. # Auxiliary programs
  298.  
  299. arch.h: genarch$(XE)
  300.     $(EXPP) $(EXP)genarch arch.h
  301.  
  302. # -------------------------------- Library -------------------------------- #
  303.  
  304. # Define the inter-dependencies of the .h files.
  305. # Since not all versions of `make' defer expansion of macros,
  306. # we must list these in bottom-to-top order.
  307.  
  308. # Generic files
  309.  
  310. arch_h=arch.h
  311. std_h=std.h $(arch_h)
  312. gdebug_h=gdebug.h
  313. gs_h=gs.h $(std_h)
  314. gx_h=gx.h $(gs_h) $(gdebug_h)
  315.  
  316. # Platform interfaces
  317.  
  318. gp_h=gp.h
  319. gpcheck_h=gpcheck.h
  320.  
  321. # C library interfaces
  322.  
  323. # Because of variations in the "standard" header files between systems,
  324. # we define local include files named *_.h to substitute for <*.h>.
  325.  
  326. vmsmath_h=vmsmath.h
  327.  
  328. dos__h=dos_.h
  329. malloc__h=malloc_.h
  330. math__h=math_.h $(vmsmath_h)
  331. memory__h=memory_.h
  332. stat__h=stat_.h
  333. string__h=string_.h
  334. time__h=time_.h
  335.  
  336. # Miscellaneous
  337.  
  338. gserrors_h=gserrors.h
  339.  
  340. GX=$(AK) $(gx_h)
  341. GXERR=$(GX) $(gserrors_h)
  342.  
  343. ###### Low-level facilities and utilities
  344.  
  345. ### Include files
  346.  
  347. gschar_h=gschar.h
  348. gscie_h=gscie.h
  349. gscolor_h=gscolor.h
  350. gscolor2_h=gscolor2.h
  351. gscoord_h=gscoord.h
  352. gscrypt1_h=gscrypt1.h
  353. gscspace_h=gscspace.h
  354. gsfont_h=gsfont.h
  355. gsmatrix_h=gsmatrix.h
  356. gspaint_h=gspaint.h
  357. gspath_h=gspath.h
  358. gsprops_h=gsprops.h
  359. gsstate_h=gsstate.h $(gscolor_h)
  360. gstype1_h=gstype1.h
  361. gsutil_h=gsutil.h
  362.  
  363. gxarith_h=gxarith.h
  364. gxbitmap_h=gxbitmap.h
  365. gxcache_h=gxcache.h
  366. gxchar_h=gxchar.h $(gschar_h)
  367. gxclist_h=gxclist.h
  368. gxcpath_h=gxcpath.h
  369. gxdevice_h=gxdevice.h $(gsmatrix_h) $(gxbitmap_h)
  370. gxdevmem_h=gxdevmem.h
  371. gxfdir_h=gxfdir.h
  372. gxfixed_h=gxfixed.h
  373. gxfont_h=gxfont.h $(gsfont_h)
  374. gximage_h=gximage.h
  375. gxlum_h=gxlum.h
  376. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  377. gxop1_h=gxop1.h
  378. gxpath_h=gxpath.h
  379. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h)
  380.  
  381. gzcolor_h=gzcolor.h $(gscolor_h)
  382. gzdevice_h=gzdevice.h $(gxdevice_h)
  383. gzht_h=gzht.h
  384. gzline_h=gzline.h
  385. gzpath_h=gzpath.h $(gxpath_h)
  386. gzstate_h=gzstate.h $(gsstate_h)
  387.  
  388. ### Executable code
  389.  
  390. gsutil.$(OBJ): gsutil.c \
  391.   $(std_h) $(gsprops_h) $(gsutil_h)
  392.  
  393. gxcache.$(OBJ): gxcache.c $(GXERR) $(gpcheck_h) \
  394.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzdevice_h) $(gzcolor_h) \
  395.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  396.   $(gxcache_h) $(gzstate_h) $(gzpath_h)
  397.  
  398. gxclist.$(OBJ): gxclist.c $(GXERR) \
  399.   $(gsmatrix_h) $(gxbitmap_h) $(gxclist_h) $(gxdevice_h) $(gxdevmem_h)
  400.  
  401. gxcolor.$(OBJ): gxcolor.c $(GXERR) \
  402.   $(gscspace_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gxlum_h) \
  403.   $(gzcolor_h) $(gzht_h) $(gzstate_h)
  404.  
  405. gxcpath.$(OBJ): gxcpath.c $(GXERR) \
  406.   $(gxdevice_h) $(gxfixed_h) $(gzcolor_h) $(gzpath_h) $(gxcpath_h)
  407.  
  408. gxdither.$(OBJ): gxdither.c $(GX) \
  409.   $(gxfixed_h) $(gxlum_h) $(gxmatrix_h) $(gzstate_h) $(gzdevice_h) $(gzcolor_h) $(gzht_h)
  410.  
  411. gxdraw.$(OBJ): gxdraw.c $(GX) $(gpcheck_h) \
  412.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzcolor_h) $(gzdevice_h) $(gzstate_h)
  413.  
  414. gxfill.$(OBJ): gxfill.c $(GXERR) \
  415.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzcolor_h) $(gzpath_h) $(gzstate_h) $(gxcpath_h)
  416.  
  417. gxhint1.$(OBJ): gxhint1.c $(GXERR) \
  418.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) \
  419.   $(gzdevice_h) $(gzstate_h)
  420.  
  421. gxht.$(OBJ): gxht.c $(GXERR) \
  422.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h)
  423.  
  424. gxpath.$(OBJ): gxpath.c $(GXERR) \
  425.   $(gxfixed_h) $(gzpath_h)
  426.  
  427. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  428.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  429.  
  430. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) \
  431.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  432.  
  433. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(gpcheck_h) \
  434.   $(gscoord_h) $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) \
  435.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzline_h) $(gzpath_h)
  436.  
  437. ###### High-level facilities
  438.  
  439. gschar.$(OBJ): gschar.c $(GXERR) \
  440.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gxcache_h) $(gstype1_h) $(gspath_h) $(gzpath_h) $(gzcolor_h) $(gzstate_h)
  441.  
  442. gscolor.$(OBJ): gscolor.c $(GXERR) \
  443.   $(gscspace_h) \
  444.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzstate_h) $(gzcolor_h) $(gzht_h)
  445.  
  446. gscoord.$(OBJ): gscoord.c $(GXERR) \
  447.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzstate_h) $(gscoord_h)
  448.  
  449. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  450.   $(gxarith_h) $(gsprops_h) $(gsutil_h) $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gxdevmem_h) $(gzstate_h) $(gzdevice_h)
  451.  
  452. gsfile.$(OBJ): gsfile.c $(GXERR) \
  453.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  454.  
  455. gsfont.$(OBJ): gsfont.c $(GXERR) \
  456.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfdir_h) \
  457.   $(gzstate_h)
  458.  
  459. gsimage.$(OBJ): gsimage.c $(GXERR) $(gpcheck_h) \
  460.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  461.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  462.   $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  463.  
  464. gsimage2.$(OBJ): gsimage2.c $(GXERR) $(gpcheck_h) \
  465.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  466.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  467.   $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  468.  
  469. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  470.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  471.  
  472. gsline.$(OBJ): gsline.c $(GXERR) \
  473.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  474.  
  475. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  476.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h)
  477.  
  478. gsmisc.$(OBJ): gsmisc.c $(GX) $(MAKEFILE)
  479.     $(CCC) -DUSE_ASM=0$(USE_ASM) gsmisc.c
  480.  
  481. gspaint.$(OBJ): gspaint.c $(GXERR) $(gpcheck_h) \
  482.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzpath_h) $(gzstate_h) $(gzdevice_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  483.  
  484. gspath.$(OBJ): gspath.c $(GXERR) \
  485.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  486.  
  487. gspath2.$(OBJ): gspath2.c $(GXERR) \
  488.   $(gspath_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzpath_h) $(gzdevice_h)
  489.  
  490. gsstate.$(OBJ): gsstate.c $(GXERR) \
  491.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h) $(gzline_h) $(gzpath_h)
  492.  
  493. gstdev.$(OBJ): gstdev.c $(GXERR) \
  494.   $(gxbitmap_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  495.  
  496. gstype1.$(OBJ): gstype1.c $(GXERR) \
  497.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) $(gxdevmem_h) $(gxop1_h) $(gxtype1_h) \
  498.   $(gzstate_h) $(gzdevice_h) $(gzpath_h)
  499.  
  500. ###### The internal devices
  501.  
  502. gdevmem_h=gdevmem.h
  503.  
  504. gdevmem1.$(OBJ): gdevmem1.c $(AK) \
  505.   $(gs_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  506.  
  507. gdevmem2.$(OBJ): gdevmem2.c $(AK) \
  508.   $(gs_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  509.  
  510. gdevmem3.$(OBJ): gdevmem3.c $(AK) \
  511.   $(gs_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  512.  
  513. ###### Files dependent on the installed devices, features, and platform.
  514. # Generating gconfig.h also generates obj*.tr and lib.tr.
  515.  
  516. gconfig.h obj.tr objw.tr lib.tr: devs.mak $(MAKEFILE) echogs$(XE) $(UNIQ) \
  517.   $(DEVICE_DEVS) $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) $(DEVICE_DEVS5)\
  518.   $(FEATURE_DEVS) $(PLATFORM).dev
  519.     $(SHP)gsconfig $(DEVICE_DEVS) +
  520.     $(SHP)gsconfig + $(DEVICE_DEVS2) +
  521.     $(SHP)gsconfig + $(DEVICE_DEVS3) +
  522.     $(SHP)gsconfig + $(DEVICE_DEVS4) +
  523.     $(SHP)gsconfig + $(DEVICE_DEVS5) +
  524.     $(SHP)gsconfig + $(FEATURE_DEVS) $(PLATFORM).dev
  525.  
  526. gconfig.$(OBJ): gconfig.c $(AK) gconfig.h $(MAKEFILE)
  527.     $(CC0) -DGS_LIB_DEFAULT=$(QQ)$(GS_LIB_DEFAULT)$(QQ) -DGS_INIT=$(QQ)$(GS_INIT)$(QQ) gconfig.c
  528.  
  529. ###### On Unix, we pre-link all of the library except the back end.
  530. ###### On MS-DOS, we have to do the whole thing at once.
  531.  
  532. LIB=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) \
  533.  gsdevice.$(OBJ) gsfile.$(OBJ) gsfont.$(OBJ) gsimage.$(OBJ) gsimage2.$(OBJ) \
  534.  gsimpath.$(OBJ) gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  535.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) \
  536.  gsstate.$(OBJ) gstdev.$(OBJ) gstype1.$(OBJ) gsutil.$(OBJ) \
  537.  gxcache.$(OBJ) gxclist.$(OBJ) gxcolor.$(OBJ) gxcpath.$(OBJ) \
  538.  gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) gxhint1.$(OBJ) gxht.$(OBJ) \
  539.  gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ) gxstroke.$(OBJ) \
  540.  gdevmem1.$(OBJ) gdevmem2.$(OBJ) gdevmem3.$(OBJ) gconfig.$(OBJ)
  541.  
  542. # ------------------------------ Interpreter ------------------------------ #
  543.  
  544. ###### Include files
  545.  
  546. alloc_h=alloc.h
  547. astate_h=astate.h
  548. ccfont_h=ccfont.h
  549. dict_h=dict.h
  550. dparam_h=dparam.h
  551. dstack_h=dstack.h
  552. errors_h=errors.h
  553. estack_h=estack.h
  554. files_h=files.h
  555. font_h=font.h
  556. ghost_h=ghost.h $(gx_h) $(iref_h)
  557. iref_h=iref.h
  558. iutil_h=iutil.h
  559. main_h=main.h
  560. name_h=name.h
  561. opdef_h=opdef.h
  562. ostack_h=ostack.h
  563. overlay_h=overlay.h
  564. packed_h=packed.h
  565. save_h=save.h
  566. scanchar_h=scanchar.h
  567. scf_h=scf.h
  568. state_h=state.h
  569. store_h=store.h
  570. stream_h=stream.h
  571. # Nested include files
  572. bfont_h=bfont.h $(font_h)
  573. oper_h=oper.h $(gsutil_h) $(iutil_h) $(opdef_h) $(ostack_h)
  574. # Include files for optional features
  575. bnum_h=bnum.h
  576. bseq_h=bseq.h
  577. btoken_h=btoken.h
  578.  
  579. comp1_h=comp1.h $(ghost_h) $(oper_h) $(gserrors_h) $(gxfixed_h) $(gxop1_h)
  580.  
  581. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  582.   $(gserrors_h) $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  583.  
  584. ###### Utilities
  585.  
  586. GH=$(AK) $(ghost_h)
  587.  
  588. ialloc.$(OBJ): ialloc.c $(AK) $(gs_h) $(gdebug_h) $(alloc_h) $(astate_h)
  589.  
  590. iccfont.$(OBJ): iccfont.c $(GH) gconfig.h \
  591.  $(ghost_h) $(alloc_h) $(ccfont_h) $(dict_h) $(dstack_h) $(errors_h) $(iutil_h) $(name_h) $(oper_h) $(save_h) $(store_h)
  592.  
  593. idebug.$(OBJ): idebug.c $(GH) \
  594.  $(iutil_h) $(dict_h) $(name_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h)
  595.  
  596. idict.$(OBJ): idict.c $(GH) \
  597.   $(alloc_h) $(errors_h) $(name_h) $(packed_h) $(save_h) $(store_h) $(iutil_h) $(dict_h) $(dstack_h)
  598.  
  599. idparam.$(OBJ): idparam.c $(GH) \
  600.   $(gsmatrix_h) $(dict_h) $(dparam_h) $(errors_h) $(iutil_h)
  601.  
  602. iinit.$(OBJ): iinit.c $(GH) gconfig.h \
  603.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(name_h) $(oper_h) $(store_h)
  604.  
  605. iname.$(OBJ): iname.c $(GH) $(alloc_h) $(errors_h) $(name_h) $(store_h)
  606.  
  607. isave.$(OBJ): isave.c $(GH) $(alloc_h) $(astate_h) $(name_h) $(packed_h) $(save_h) $(store_h)
  608.  
  609. iscan.$(OBJ): iscan.c $(GH) $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(iutil_h) \
  610.  $(name_h) $(ostack_h) $(packed_h) $(store_h) $(stream_h) $(scanchar_h)
  611.  
  612. iutil.$(OBJ): iutil.c $(GH) \
  613.  $(errors_h) $(alloc_h) $(dict_h) $(iutil_h) $(name_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h) \
  614.  $(gsmatrix_h) $(gxdevice_h) $(gzcolor_h)
  615.  
  616. sfilter.$(OBJ): sfilter.c $(AK) $(std_h) $(scanchar_h) $(stream_h) \
  617.  $(gscrypt1_h)
  618.  
  619. stream.$(OBJ): stream.c $(AK) $(std_h) $(stream_h) $(scanchar_h)
  620.  
  621. ###### Operators
  622.  
  623. OP=$(GH) $(errors_h) $(oper_h)
  624.  
  625. ### Non-graphics operators
  626.  
  627. zarith.$(OBJ): zarith.c $(OP) $(store_h)
  628.  
  629. zarray.$(OBJ): zarray.c $(OP) $(alloc_h) $(packed_h) $(store_h)
  630.  
  631. zcontrol.$(OBJ): zcontrol.c $(OP) $(estack_h) $(iutil_h) $(store_h)
  632.  
  633. zdict.$(OBJ): zdict.c $(OP) $(dict_h) $(dstack_h) $(name_h) $(store_h)
  634.  
  635. zfile.$(OBJ): zfile.c $(OP) $(gp_h) \
  636.   $(alloc_h) $(estack_h) $(files_h) $(iutil_h) $(save_h) $(stream_h) $(store_h)
  637.  
  638. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  639.   $(estack_h) $(files_h) $(store_h) $(stream_h) \
  640.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  641.  
  642. zfilter.$(OBJ): zfilter.c $(OP) $(alloc_h) $(stream_h)
  643.  
  644. zgeneric.$(OBJ): zgeneric.c $(OP) $(dict_h) $(estack_h) $(name_h) $(packed_h) $(store_h)
  645.  
  646. zmath.$(OBJ): zmath.c $(OP) $(store_h)
  647.  
  648. zmisc.$(OBJ): zmisc.c $(OP) $(gp_h) \
  649.   $(alloc_h) $(dict_h) $(dstack_h) $(name_h) $(packed_h) $(store_h) \
  650.   $(gscrypt1_h)
  651.  
  652. zpacked.$(OBJ): zpacked.c $(OP) \
  653.   $(alloc_h) $(dict_h) $(name_h) $(packed_h) $(save_h) $(store_h)
  654.  
  655. zprops.$(OBJ): zprops.c $(OP) \
  656.   $(alloc_h) $(dict_h) $(name_h) $(store_h) \
  657.   $(gsprops_h) $(gsmatrix_h) $(gxdevice_h)
  658.  
  659. zrelbit.$(OBJ): zrelbit.c $(OP) $(store_h) $(dict_h)
  660.  
  661. zstack.$(OBJ): zstack.c $(OP) $(store_h)
  662.  
  663. zstring.$(OBJ): zstring.c $(OP) $(alloc_h) $(iutil_h) $(name_h) $(store_h) $(stream_h)
  664.  
  665. ztype.$(OBJ): ztype.c $(OP) $(dict_h) $(iutil_h) $(name_h) $(stream_h) $(store_h)
  666.  
  667. zvmem.$(OBJ): zvmem.c $(OP) $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(save_h) $(state_h) $(store_h) \
  668.   $(gsmatrix_h) $(gsstate_h)
  669.  
  670. ###### Graphics operators
  671.  
  672. zchar.$(OBJ): zchar.c $(OP) $(gxfixed_h) $(gxmatrix_h) \
  673.  $(gschar_h) $(gxtype1_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h) \
  674.  $(alloc_h) $(dict_h) $(dstack_h) $(font_h) $(estack_h) $(state_h) $(store_h)
  675.  
  676. zcolor.$(OBJ): zcolor.c $(OP) $(alloc_h) $(estack_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gzcolor_h) $(iutil_h) $(state_h) $(store_h)
  677.  
  678. zdevice.$(OBJ): zdevice.c $(OP) $(alloc_h) $(state_h) $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  679.  
  680. zfont.$(OBJ): zfont.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) $(gxfdir_h) \
  681.  $(alloc_h) $(bfont_h) $(dict_h) $(name_h) $(packed_h) $(save_h) $(state_h) $(store_h)
  682.  
  683. zfont1.$(OBJ): zfont1.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  684.  $(bfont_h) $(dict_h) $(dparam_h) $(name_h) $(store_h)
  685.  
  686. zfont2.$(OBJ): zfont2.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  687.  $(alloc_h) $(bfont_h) $(dict_h) $(dparam_h) $(name_h) $(packed_h) $(store_h)
  688.  
  689. zgstate.$(OBJ): zgstate.c $(OP) $(alloc_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  690.  
  691. zht.$(OBJ): zht.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  692.  
  693. zmatrix.$(OBJ): zmatrix.c $(OP) $(gsmatrix_h) $(state_h) $(gscoord_h) $(store_h)
  694.  
  695. zpaint.$(OBJ): zpaint.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gspaint_h) $(state_h) $(store_h) $(stream_h)
  696.  
  697. zpath.$(OBJ): zpath.c $(OP) $(gsmatrix_h) $(gspath_h) $(state_h) $(store_h)
  698.  
  699. zpath2.$(OBJ): zpath2.c $(OP) $(alloc_h) $(estack_h) $(gspath_h) $(state_h) $(store_h)
  700.  
  701. ###### Linking
  702.  
  703. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ) \
  704.  iinit.$(OBJ) iname.$(OBJ) \
  705.  interp.$(OBJ) isave.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) \
  706.  sfilter.$(OBJ) stream.$(OBJ) \
  707.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) \
  708.  zfile.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zgeneric.$(OBJ) \
  709.  zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zprops.$(OBJ) zrelbit.$(OBJ) \
  710.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  711.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zfont1.$(OBJ) zfont2.$(OBJ) \
  712.  zdevice.$(OBJ) zgstate.$(OBJ) zht.$(OBJ) zmatrix.$(OBJ) \
  713.  zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  714.  
  715. # -------------------------- Optional features ---------------------------- #
  716.  
  717. ### Additions common to Display PostScript and Level 2
  718.  
  719. dpsand2_=gsdps1.$(OBJ) ibnum.$(OBJ) ibscan.$(OBJ) \
  720.  zbseq.$(OBJ) zdps1.$(OBJ) zupath.$(OBJ)
  721. dpsand2.dev: $(dpsand2_)
  722.     $(SHP)gssetmod dpsand2 $(dpsand2_)
  723.     $(SHP)gsaddmod dpsand2 -oper zbseq zdps1 zupath
  724.     $(SHP)gsaddmod dpsand2 -ps gs_dps1
  725.  
  726. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(gsmatrix_h) $(gspath_h)
  727.  
  728. ibnum.$(OBJ): ibnum.c $(GH) $(errors_h) $(stream_h) $(bnum_h) $(btoken_h)
  729.  
  730. ibscan.$(OBJ): ibscan.c $(GH) $(errors_h) \
  731.  $(alloc_h) $(dict_h) $(dstack_h) $(iutil_h) $(name_h) $(ostack_h) $(save_h) $(store_h) $(stream_h) $(bseq_h) $(btoken_h) $(bnum_h)
  732.  
  733. zbseq.$(OBJ): zbseq.c $(OP) $(save_h) $(store_h) $(stream_h) $(files_h) $(name_h) $(bnum_h) $(btoken_h) $(bseq_h)
  734.  
  735. zdps1.$(OBJ): zdps1.c $(OP) $(gsmatrix_h) $(gspath_h) $(gsstate_h) \
  736.  $(alloc_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  737.  
  738. zupath.$(OBJ): zupath.c $(OP) \
  739.  $(dict_h) $(dstack_h) $(iutil_h) $(state_h) $(store_h) $(stream_h) $(bnum_h) \
  740.  $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  741.  $(gxfixed_h) $(gxdevice_h) $(gxpath_h)
  742.  
  743. ### Display PostScript
  744. # We should include zcontext, but it isn't in good enough shape yet:
  745. #    $(SHP)gsaddmod dps -oper zcontext
  746.  
  747. dps_=
  748. dps.dev: dpsand2.dev $(dps_)
  749.     $(SHP)gssetmod dps $(dps_)
  750.     $(SHP)gsaddmod dps -include dpsand2
  751.  
  752. zcontext.$(OBJ): zcontext.c $(OP) \
  753.  $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(state_h) $(store_h)
  754.  
  755. ### Level 2 additions
  756. # We should include gscie and zcie, but they aren't anywhere near ready.
  757.  
  758. level2_=gscolor2.$(OBJ) zcolor2.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ)
  759. level2.dev: dpsand2.dev $(level2_)
  760.     $(SHP)gssetmod level2 $(level2_)
  761.     $(SHP)gsaddmod level2 -include dpsand2
  762.     $(SHP)gsaddmod level2 -oper zcolor2 zimage2
  763.     $(SHP)gsaddmod level2 -ps gs_lev2
  764.  
  765. gscie.$(OBJ): gscie.c $(std_h) \
  766.   $(gscspace_h) $(gscie_h)
  767.  
  768. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  769.   $(gscolor2_h) $(gscspace_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  770.   $(gzcolor_h) $(gzstate_h)
  771.  
  772. zcie.$(OBJ): zcie.c $(OP) $(gscspace_h) $(gscie_h) \
  773.   $(dict_h) $(dparam_h) $(state_h)
  774.  
  775. zcolor2.$(OBJ): zcolor2.c $(OP) \
  776.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  777.   $(dict_h) $(dparam_h) $(name_h) $(state_h) $(store_h)
  778.  
  779. zht2.$(OBJ): zht2.c $(OP) \
  780.   $(dict_h) $(dparam_h) $(name_h) $(state_h) $(store_h)
  781.  
  782. zimage2.$(OBJ): zimage2.c $(OP) \
  783.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  784.   $(dict_h) $(dparam_h) $(state_h)
  785.  
  786. ### Composite font support
  787.  
  788. gschar0.$(OBJ): gschar0.c $(GXERR) \
  789.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gzstate_h)
  790.  
  791. zfont0.$(OBJ): zfont0.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) \
  792.  $(alloc_h) $(bfont_h) $(dict_h) $(name_h) $(state_h) $(store_h)
  793.  
  794. compfont_=zfont0.$(OBJ) gschar0.$(OBJ)
  795. compfont.dev: $(compfont_)
  796.     $(SHP)gssetmod compfont $(compfont_)
  797.     $(SHP)gsaddmod compfont -oper zfont0
  798.  
  799. ### Filters other than the ones in sfilter.c
  800.  
  801. scftab.$(OBJ): scftab.c $(AK) $(std_h) $(scf_h)
  802.  
  803. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scf_h)
  804.  
  805. scfd.$(OBJ): scfd.c $(AK) $(std_h) $(gdebug_h) $(scf_h) $(stream_h)
  806.  
  807. scfe.$(OBJ): scfe.c $(AK) $(std_h) $(gdebug_h) $(scf_h) $(stream_h)
  808.  
  809. sfilter2.$(OBJ): sfilter2.c $(AK) $(std_h) $(scanchar_h) $(stream_h)
  810.  
  811. slzwd.$(OBJ): slzwd.c $(AK) $(std_h) $(gdebug_h) $(stream_h)
  812.  
  813. slzwe.$(OBJ): slzwe.c $(AK) $(std_h) $(gdebug_h) $(stream_h)
  814.  
  815. zfilter2.$(OBJ): zfilter2.c $(OP) $(alloc_h) $(dict_h) $(dparam_h) $(stream_h)
  816.  
  817. # Because of size limits on the DOS command line,
  818. # we have to break this up into two parts.
  819. filter_1=zfilter2.$(OBJ) sfilter2.$(OBJ)
  820. filter_2=scfd.$(OBJ) scfe.$(OBJ) scfdtab.$(OBJ) scftab.$(OBJ) slzwd.$(OBJ) slzwe.$(OBJ)
  821. filter.dev: $(filter_1) $(filter_2)
  822.     $(SHP)gssetmod filter $(filter_1)
  823.     $(SHP)gsaddmod filter -obj $(filter_2)
  824.     $(SHP)gsaddmod filter -oper zfilter2
  825.  
  826. ### Precompiled fonts.  See fonts.doc for more information.
  827.  
  828. CCFONT=$(OP) $(ccfont_h)
  829.  
  830. ccfonts_=ugly.$(OBJ)
  831. ccfonts.dev: $(ccfonts_) iccfont.$(OBJ)
  832.     $(SHP)gssetmod ccfonts $(ccfonts_) iccfont.$(OBJ)
  833.     $(SHP)gsaddmod ccfonts -oper ccfonts
  834.     $(SHP)gsaddmod ccfonts -font Ugly
  835.  
  836. ugly.$(OBJ): ugly.c $(CCFONT)
  837.  
  838. ncrr.$(OBJ): ncrr.c $(CCFONT)
  839.  
  840. psyr.$(OBJ): psyr.c $(CCFONT)
  841.  
  842. ptmr.$(OBJ): ptmr.c $(CCFONT)
  843.  
  844. pzdr.$(OBJ): pzdr.c $(CCFONT)
  845.  
  846. # ----------------------------- Main program ------------------------------ #
  847.  
  848. # Interpreter main program
  849.  
  850. gs.$(OBJ): gs.c $(GH) $(gxdevice_h) $(gxdevmem_h) \
  851.   $(alloc_h) $(errors_h) $(estack_h) $(main_h) $(ostack_h) $(store_h) $(stream_h)
  852.  
  853. gsmain.$(OBJ): gsmain.c $(GH) \
  854.   $(gp_h) $(gsmatrix_h) $(gxdevice_h) $(gserrors_h) \
  855.   $(estack_h) $(main_h) $(ostack_h) $(store_h)
  856.  
  857. interp.$(OBJ): interp.c $(GH) \
  858.   $(errors_h) $(estack_h) $(name_h) $(dict_h) $(dstack_h) $(oper_h) $(ostack_h) $(packed_h) $(save_h) $(store_h) $(stream_h)
  859.     $(CCINT) interp.c
  860. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  861. #    Distributed by Free Software Foundation, Inc.
  862. #
  863. # This file is part of Ghostscript.
  864. #
  865. # Ghostscript is distributed in the hope that it will be useful, but
  866. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  867. # to anyone for the consequences of using it or for whether it serves any
  868. # particular purpose or works at all, unless he says so in writing.  Refer
  869. # to the Ghostscript General Public License for full details.
  870. #
  871. # Everyone is granted permission to copy, modify and redistribute
  872. # Ghostscript, but only under the conditions described in the Ghostscript
  873. # General Public License.  A copy of this license is supposed to have been
  874. # given to you along with Ghostscript so you can know your rights and
  875. # responsibilities.  It should be in a file named COPYING.  Among other
  876. # things, the copyright notice and this notice must be preserved on all
  877. # copies.
  878.  
  879. # makefile for Ghostscript device drivers.
  880.  
  881. # -------------------------------- Catalog ------------------------------- #
  882.  
  883. # It is possible to build Ghostscript with an arbitrary collection of
  884. # device drivers, although some drivers are supported only on a subset
  885. # of the target platforms.  The currently available drivers are:
  886.  
  887. # Displays:
  888. #   MS-DOS EGA and VGA:
  889. #    ega    EGA (640x350, 16-color)
  890. #    vga    VGA (640x480, 16-color)
  891. #   MS-DOS SuperVGA:
  892. # +    atiw    ATI Wonder SuperVGA, 256-color modes
  893. # *    mdb10    EIZO MDB-10 (1024 x 768)
  894. #    s3vga    SuperVGA with S3 86C911 chip (e.g., Diamond Stealth board)
  895. #    tseng    SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  896. #    tseng16  Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
  897. # +    tvga    Trident SuperVGA, 256-color modes
  898. # +    tvga16    Trident SuperVGA in 800x600, 16-color mode (256K memory)
  899. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  900. #   ****** compiler or executable.
  901. #    vesa    SuperVGA with VESA standard API driver
  902. #   MS-DOS other:
  903. #    bgi    Borland Graphics Interface (CGA and Hercules)
  904. #    mswin    Microsoft Windows 3.0, 3.1
  905. # *    pe    Private Eye
  906. #   Unix and VMS:
  907. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  908. # *    sunview  SunView window system   [SunOS only]
  909. #    x11    X Windows version 11, release >=3   [Unix and VMS only]
  910. # Printers:
  911. #    bj10e    Canon BubbleJet BJ10e
  912. # *    cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  913. # *    cdjcolor  H-P DeskJet 500C with 8 bit/pixel color and
  914. #        high-quality color (Floyd-Steinberg) dithering
  915. # *    cdjmono  H-P DeskJet 500C printing black only
  916. # +    deskjet  H-P DeskJet and DeskJet Plus
  917. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  918. # *    dfaxlow  DigiFAX low (normal) resolution
  919. #    djet500  H-P DeskJet 500
  920. # *    djet500c  H-P DeskJet 500C
  921. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  922. # +    eps9high  Epson-compatible 9-pin, interleaved lines
  923. #        (triple resolution)
  924. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  925. # +    laserjet  H-P LaserJet
  926. # *    la50    DEC LA50 printer
  927. # *    la75    DEC LA75 printer
  928. # *    lbp8    Canon LBP-8II laser printer
  929. # *    ln03    DEC LN03 printer
  930. # *    lj250    DEC LJ250 Companion color printer
  931. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  932. # +    ljet3    H-P LaserJet III* with Delta Row compression
  933. # *    ljetplus  H-P LaserJet Plus
  934. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  935. #    paintjet  H-P PaintJet color printer
  936. # *    pjetxl    H-P PaintJet XL color printer
  937. # *    r4081    Ricoh 4081 laser printer
  938. # *    tek4696  Tektronix 4695/4696 inkjet plotter
  939. # *    trufax    TruFax facsimile driver  [Unix only]
  940. # File formats and others:
  941. #    bit    A plain "bit bucket" device
  942. #    gifmono    Monochrome GIF file format
  943. #    gif8    8-bit color GIF file format
  944. #    pcxmono    Monochrome PCX file format
  945. #    pcx16    Older color PCX file format (EGA/VGA, 16-color)
  946. #    pcx256    Newer color PCX file format (256-color)
  947. #    pbm    Portable Bitmap (plain format)
  948. #    pbmraw    Portable Bitmap (raw format)
  949. #    pgm    Portable Graymap (plain format)
  950. #    pgmraw    Portable Graymap (raw format)
  951. #    ppm    Portable Pixmap (plain format)
  952. #    ppmraw    Portable Pixmap (raw format)
  953.  
  954. # User-contributed drivers marked with * require hardware or software
  955. # that is not available to Aladdin Enterprises.  Please contact the
  956. # original contributors, not Aladdin Enterprises, if you have questions.
  957. # Contact information appears in the driver entry below.
  958. #
  959. # Drivers marked with a + are maintained by Aladdin Enterprises with
  960. # the assistance of users, since Aladdin Enterprises doesn't have access to
  961. # the hardware for these either.
  962.  
  963. # If you add drivers, it would be nice if you kept each list
  964. # in alphabetical order.
  965.  
  966. # Each platform-specific makefile contains a line of the form
  967. #    DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  968. # where dev1 ... devn are the devices to be included in the build.
  969. # You may edit this line to select any desired set of devices.
  970. # dev1 will be used as the default device (unless overridden from
  971. # the command line with -sDEVICE=xxx, of course.)  If you can't fit all the
  972. # devices on a single line, you may add lines defining
  973. #    DEVICE_DEVS2=<dev21>.dev ... <dev2n>.dev
  974. #    DEVICE_DEVS3=<dev31>.dev ... <dev3n>.dev
  975. # etc. up to DEVICE_DEVS5.
  976. # Don't use continuation lines, since this may break the MS-DOS command
  977. # processor.
  978.  
  979. # ---------------------------- End of catalog ---------------------------- #
  980.  
  981. # If you want to add a new device driver, the examples below should be
  982. # enough of a guide to the correct form for the makefile rules.
  983.  
  984. # All device drivers depend on the following:
  985. GDEV=$(AK) echogs$(XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  986.  
  987. # Define the header files for device drivers.  Every header file used by
  988. # more than one device driver must be listed here.
  989. gdevpccm_h=gdevpccm.h
  990. gdevpcfb_h=gdevpcfb.h
  991. gdevpcl_h=gdevpcl.h
  992. gdevsvga_h=gdevsvga.h
  993. gdevx_h=gdevx.h
  994.  
  995. ###### ------------------- MS-DOS display devices ------------------- ######
  996.  
  997. # There are really only two drivers: an EGA/VGA driver (4 bit-planes,
  998. # plane-addressed) and a SuperVGA driver (8 bit-planes, byte addressed).
  999.  
  1000. ### ----------------------- EGA and VGA displays ----------------------- ###
  1001.  
  1002. gdevegaa.$(OBJ): gdevegaa.asm
  1003.  
  1004. ETEST=ega.$(OBJ) $(ega_) gdevpcfb.$(OBJ) gdevegaa.$(OBJ)
  1005. ega.exe: $(ETEST) libc$(MM).tr
  1006.     $(COMPDIR)\tlink /v $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  1007.  
  1008. ega.$(OBJ): ega.c $(GDEV)
  1009.     $(CCC) -v ega.c
  1010.  
  1011. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  1012. # or an empty string.
  1013.  
  1014. EGAVGA=gdevpcfb.$(OBJ) $(PCFBASM)
  1015.  
  1016. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(dos__h) $(gdevpcfb_h)
  1017.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
  1018.  
  1019. # The EGA/VGA family includes: EGA, VGA, and MDB-10, and the
  1020. # Tseng ET3000/4000 and Trident SuperVGA in 16-color mode.
  1021.  
  1022. ega.dev: $(EGAVGA)
  1023.     $(SHP)gssetdev ega $(EGAVGA)
  1024.  
  1025. vga.dev: $(EGAVGA)
  1026.     $(SHP)gssetdev vga $(EGAVGA)
  1027.  
  1028. mdb10.dev: $(EGAVGA)
  1029.     $(SHP)gssetdev mdb10 $(EGAVGA)
  1030.  
  1031. tseng16.dev: $(EGAVGA)
  1032.     $(SHP)gssetdev tseng16 $(EGAVGA)
  1033.  
  1034. tvga16.dev: $(EGAVGA)
  1035.     $(SHP)gssetdev tvga16 $(EGAVGA)
  1036.  
  1037. ### ------------------------- SuperVGA displays ------------------------ ###
  1038.  
  1039. SVGA=gdevsvga.$(OBJ) $(PCFBASM)
  1040.  
  1041. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(dos__h) $(gdevpcfb_h) $(gdevsvga_h)
  1042.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
  1043.  
  1044. # The SuperVGA family includes: ATI Wonder, S3, Trident, Tseng ET3000/4000,
  1045. # and VESA.
  1046.  
  1047. atiw.dev: $(SVGA)
  1048.     $(SHP)gssetdev atiw $(SVGA)
  1049.  
  1050. tseng.dev: $(SVGA)
  1051.     $(SHP)gssetdev tseng $(SVGA)
  1052.  
  1053. tvga.dev: $(SVGA)
  1054.     $(SHP)gssetdev tvga $(SVGA)
  1055.  
  1056. vesa.dev: $(SVGA)
  1057.     $(SHP)gssetdev vesa $(SVGA)
  1058.  
  1059. # The S3 driver doesn't share much code with the others.
  1060.  
  1061. s3vga_=$(SVGA) gdevs3ga.$(OBJ)
  1062. s3vga.dev: $(s3vga_)
  1063.     $(SHP)gssetdev s3vga $(s3vga_)
  1064.  
  1065. gdevs3ga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h) $(gdevsvga_h)
  1066.     $(CCD) gdevs3ga.c
  1067.  
  1068. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  1069.  
  1070. # We should use an implicit rule for running bgiobj,
  1071. # but a bug in Borland's `make' utility makes this not work.
  1072.  
  1073. cga.$(OBJ): $(BGIDIR)\cga.bgi
  1074.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1075.  
  1076. egavga.$(OBJ): $(BGIDIR)\egavga.bgi
  1077.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1078.  
  1079. herc.$(OBJ): $(BGIDIR)\herc.bgi
  1080.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1081.  
  1082. # Include egavga.$(OBJ) for debugging only.
  1083. bgi_=gdevbgi.$(OBJ) cga.$(OBJ) herc.$(OBJ)
  1084. bgi.dev: $(bgi_)
  1085.     $(SHP)gssetdev bgi $(bgi_)
  1086.     $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
  1087.  
  1088. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE)
  1089.     $(CCC) -DBGI_LIB=$(QQ)$(BGIDIR)$(QQ) gdevbgi.c
  1090.  
  1091. ###### ------------------- The Private Eye display ------------------- ######
  1092. ### Note: this driver was contributed by a user:                          ###
  1093. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  1094.  
  1095. pe_=gdevpe.$(OBJ)
  1096. pe.dev: $(pe_)
  1097.     $(SHP)gssetdev pe $(pe_)
  1098.  
  1099. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  1100.  
  1101. ###### ----------------- The MS-Windows 3.n display ------------------ ######
  1102.  
  1103. mswin_=gdevmswn.$(OBJ)
  1104. mswin.dev: $(mswin_)
  1105.     $(SHP)gssetdev mswin $(mswin_)
  1106.  
  1107. gdevmswn.$(OBJ): gdevmswn.c $(GDEV) $(gp_h) $(gpcheck_h)
  1108.  
  1109. ###### --------------- Memory-buffered printer devices --------------- ######
  1110.  
  1111. PDEVH=$(GDEV) $(gdevprn_h)
  1112.  
  1113. gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
  1114.  
  1115. ### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
  1116.  
  1117. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  1118. bj10e.dev: $(bj10e_)
  1119.     $(SHP)gssetdev bj10e $(bj10e_)
  1120.  
  1121. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  1122.  
  1123. ### -------------------------- The DigiFAX device ----------------------- ###
  1124. ###    This driver outputs images in a format suitable for use with       ###
  1125. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  1126. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  1127. ### Note: this driver was contributed by a user: please contact           ###
  1128. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  1129.  
  1130. digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
  1131. dfaxhigh.dev: $(digifax_)
  1132.     $(SHP)gssetdev dfaxhigh $(digifax_)
  1133.  
  1134. dfaxlow.dev: $(digifax_)
  1135.     $(SHP)gssetdev dfaxlow $(digifax_)
  1136.  
  1137. gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
  1138.  
  1139. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  1140.  
  1141. ### These are essentially the same device.
  1142. ### You can make A4 paper the default: see below.
  1143. ### NOTE: printing at full resolution (300 DPI) requires a printer
  1144. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  1145.  
  1146. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
  1147. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  1148.  
  1149. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  1150.  
  1151. # To make A4 paper the default, change the second line below this to
  1152. #    $(CCC) -DA4 gdevdjet.c
  1153. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  1154.     $(CCC) gdevdjet.c
  1155.  
  1156. deskjet.dev: $(HPMONO)
  1157.     $(SHP)gssetdev deskjet $(HPMONO)
  1158.  
  1159. djet500.dev: $(HPMONO)
  1160.     $(SHP)gssetdev djet500 $(HPMONO)
  1161.  
  1162. laserjet.dev: $(HPMONO)
  1163.     $(SHP)gssetdev laserjet $(HPMONO)
  1164.  
  1165. ljetplus.dev: $(HPMONO)
  1166.     $(SHP)gssetdev ljetplus $(HPMONO)
  1167.  
  1168. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  1169. ### IIIp, IIId, IIIsi, IId, and IIp. 
  1170.  
  1171. ljet2p.dev: $(HPMONO)
  1172.     $(SHP)gssetdev ljet2p $(HPMONO)
  1173.  
  1174. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  1175. ### IIIp, IIId, IIIsi.
  1176.  
  1177. ljet3.dev: $(HPMONO)
  1178.     $(SHP)gssetdev ljet3 $(HPMONO)
  1179.  
  1180. ### ------------ The H-P DeskJet 500C color printer device -------------- ###
  1181. ### Note: there are two different 500C drivers, both contributed by users.###
  1182. ###   If you have questions about the djet500c driver,                    ###
  1183. ###       please contact AKayser@et.tudelft.nl.                           ###
  1184. ###   If you have questions about the cdeskjet/cdjcolor/cdjmono drivers,  ###
  1185. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  1186.  
  1187. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  1188.  
  1189. cdeskjet.dev: $(cdeskjet_)
  1190.     $(SHP)gssetdev cdeskjet $(cdeskjet_)
  1191.  
  1192. cdjcolor.dev: $(cdeskjet_)
  1193.     $(SHP)gssetdev cdjcolor $(cdeskjet_)
  1194.  
  1195. cdjmono.dev: $(cdeskjet_)
  1196.     $(SHP)gssetdev cdjmono $(cdeskjet_)
  1197.  
  1198. # To make A4 paper the default, change the second line below this to
  1199. #    $(CCC) -DA4 gdevdjet.c
  1200. gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
  1201.     $(CCC) gdevcdj.c
  1202.  
  1203. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  1204. djet500c.dev: $(djet500c_)
  1205.     $(SHP)gssetdev djet500c $(djet500c_)
  1206.  
  1207. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
  1208.  
  1209. ### ----------------- The generic Epson printer device ----------------- ###
  1210.  
  1211. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  1212.  
  1213. epson.dev: $(epson_)
  1214.     $(SHP)gssetdev epson $(epson_)
  1215.  
  1216. eps9high.dev: $(epson_)
  1217.     $(SHP)gssetdev eps9high $(epson_)
  1218.  
  1219. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH) devs.mak
  1220.  
  1221. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  1222. ### Note: this driver was contributed by users: please contact           ###
  1223. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  1224.  
  1225. epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
  1226. epsonc.dev: $(epsonc_)
  1227.     $(SHP)gssetdev epsonc $(epsonc_)
  1228.  
  1229. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH) devs.mak
  1230.  
  1231. ### ------------ The H-P PaintJet color printer device ----------------- ###
  1232. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  1233. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  1234. ### If you have questions about the XL, please contact Rob Reiss         ###
  1235. ###       (rob@moray.berkeley.edu).                                      ###
  1236.  
  1237. PJET=gdevpjet.$(OBJ) $(HPPCL)
  1238.  
  1239. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  1240.  
  1241. lj250.dev: $(PJET)
  1242.     $(SHP)gssetdev lj250 $(PJET)
  1243.  
  1244. paintjet.dev: $(PJET)
  1245.     $(SHP)gssetdev paintjet $(PJET)
  1246.  
  1247. pjetxl.dev: $(PJET)
  1248.     $(SHP)gssetdev pjetxl $(PJET)
  1249.  
  1250. ### ----------------- The Canon LBP-8II printer device ----------------- ###
  1251. ### Note: this driver was contributed by users: please contact           ###
  1252. ###       Tom Quinn (trq@prg.oxford.ac.uk) if you have questions.        ###
  1253. ### Note that the standard paper size for this driver is the European    ###
  1254. ###   A4 size, not the American 8.5" x 11" size.                         ###
  1255.  
  1256. lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
  1257. lbp8.dev: $(lbp8_)
  1258.     $(SHP)gssetdev lbp8 $(lbp8_)
  1259.  
  1260. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  1261.  
  1262. ### -------------- The DEC LN03/LA50/LA75 printer devices -------------- ###
  1263. ### Note: this driver was contributed by users: please contact           ###
  1264. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  1265. ### A more general sixel driver is available from                        ###
  1266. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                      ###
  1267.  
  1268. ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
  1269. ln03.dev: $(ln03_)
  1270.     $(SHP)gssetdev ln03 $(ln03_)
  1271.  
  1272. la50.dev: $(ln03_)
  1273.     $(SHP)gssetdev la50 $(ln03_)
  1274.  
  1275. la75.dev: $(ln03_)
  1276.     $(SHP)gssetdev la75 $(ln03_)
  1277.  
  1278. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  1279.  
  1280. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  1281. ### Note: this driver was contributed by users:                          ###
  1282. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  1283.  
  1284. r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
  1285. r4081.dev: $(r4081_)
  1286.     $(SHP)gssetdev r4081 $(r4081_)
  1287.  
  1288. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  1289.  
  1290. ###### ------------------------ Sony devices ------------------------ ######
  1291. ### Note: these drivers were contributed by users: please contact        ###
  1292. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  1293.  
  1294. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  1295.  
  1296. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  1297. sonyfb.dev: $(sonyfb_)
  1298.     $(SHP)gssetdev sonyfb $(sonyfb_)
  1299.  
  1300. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  1301.  
  1302. ### -------------------- Sony NWP533 printer device -------------------- ###
  1303.  
  1304. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  1305. nwp533.dev: $(nwp533_)
  1306.     $(SHP)gssetdev nwp533 $(nwp533_)
  1307.  
  1308. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  1309.  
  1310. ###### --------------------- The SunView device --------------------- ######
  1311. ### Note: this driver is maintained by a user: if you have questions,    ###
  1312. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  1313.  
  1314. sunview_=gdevsun.$(OBJ)
  1315. sunview.dev: $(sunview_)
  1316.     $(SHP)gssetdev sunview $(sunview_)
  1317.     $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
  1318.  
  1319. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
  1320.  
  1321. ### -------------------- Tektronix ink-jet printers -------------------- ###
  1322. ### Note: this driver was contributed by a user: please contact          ###
  1323. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  1324.  
  1325. tek4696_=gdevtknk.$(OBJ) gdevprn.$(OBJ)
  1326. tek4696.dev: $(tek4696_)
  1327.     $(SHP)gssetdev tek4696 $(tek4696_)
  1328.  
  1329. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH)
  1330.  
  1331. ### ----------------- The TruFax facsimile device ---------------------- ###
  1332. ### Note: this driver was contributed by users: please contact           ###
  1333. ###       Neil Ostroff (nao@maestro.bellcore.com) if you have questions. ###
  1334. ### Note that the driver requires a file encode_l.o supplied by the      ###
  1335. ###   makers of the TruFax product.                                      ###
  1336.  
  1337. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  1338. trufax.dev: $(trufax_)
  1339.     $(SHP)gssetdev trufax $(trufax_)
  1340.  
  1341. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  1342.  
  1343. ###### ----------------------- The X11 device ----------------------- ######
  1344.  
  1345. # Aladdin Enterprises does not support Ghostview.  For more information
  1346. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  1347.  
  1348. x11_=gdevx.$(OBJ) gdevxini.$(OBJ)
  1349. x11.dev: $(x11_)
  1350.     $(SHP)gssetdev x11 $(x11_)
  1351.     $(SHP)gsaddmod x11 -lib X11
  1352.  
  1353. # See the main makefile for the definition of XINCLUDE.
  1354. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  1355. gdevx.$(OBJ): gdevx.c $(GDEVX)
  1356.     $(CCC) $(XINCLUDE) gdevx.c
  1357.  
  1358. gdevxini.$(OBJ): gdevxini.c $(GDEVX)
  1359.     $(CCC) $(XINCLUDE) gdevxini.c
  1360.  
  1361. ### ---------------------- The bit bucket device ----------------------- ###
  1362.  
  1363. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  1364. bit.dev: $(bit_)
  1365.     $(SHP)gssetdev bit $(bit_)
  1366.  
  1367. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  1368.  
  1369. ###### ----------------------- PC file formats ---------------------- ######
  1370.  
  1371. gdevpccm.$(OBJ): gdevpccm.c $(gs_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  1372.  
  1373. ### ------------------------- GIF file formats ------------------------- ###
  1374.  
  1375. GIF=gdevgif.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1376.  
  1377. gdevgif.$(OBJ): gdevgif.c $(PDEVH) $(gdevpccm_h)
  1378.  
  1379. gifmono.dev: $(GIF)
  1380.     $(SHP)gssetdev gifmono $(GIF)
  1381.  
  1382. gif8.dev: $(GIF)
  1383.     $(SHP)gssetdev gif8 $(GIF)
  1384.  
  1385. ### ------------------------- PCX file formats ------------------------- ###
  1386.  
  1387. PCX=gdevpcx.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1388.  
  1389. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h)
  1390.  
  1391. pcxmono.dev: $(PCX)
  1392.     $(SHP)gssetdev pcxmono $(PCX)
  1393.  
  1394. pcx16.dev: $(PCX)
  1395.     $(SHP)gssetdev pcx16 $(PCX)
  1396.  
  1397. pcx256.dev: $(PCX)
  1398.     $(SHP)gssetdev pcx256 $(PCX)
  1399.  
  1400. ###### ------------------- Portable Bitmap devices ------------------ ######
  1401. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  1402.  
  1403. PXM=gdevpbm.$(OBJ) gdevprn.$(OBJ)
  1404.  
  1405. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gxlum_h)
  1406.  
  1407. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  1408.  
  1409. pbm.dev: $(PXM)
  1410.     $(SHP)gssetdev pbm $(PXM)
  1411.  
  1412. pbmraw.dev: $(PXM)
  1413.     $(SHP)gssetdev pbmraw $(PXM)
  1414.  
  1415. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  1416.  
  1417. pgm.dev: $(PXM)
  1418.     $(SHP)gssetdev pgm $(PXM)
  1419.  
  1420. pgmraw.dev: $(PXM)
  1421.     $(SHP)gssetdev pgmraw $(PXM)
  1422.  
  1423. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  1424.  
  1425. ppm.dev: $(PXM)
  1426.     $(SHP)gssetdev ppm $(PXM)
  1427.  
  1428. ppmraw.dev: $(PXM)
  1429.     $(SHP)gssetdev ppmraw $(PXM)
  1430. #    Copyright (C) 1990, 1992 Aladdin Enterprises.  All rights reserved.
  1431. #    Distributed by Free Software Foundation, Inc.
  1432. #
  1433. # This file is part of Ghostscript.
  1434. #
  1435. # Ghostscript is distributed in the hope that it will be useful, but
  1436. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1437. # to anyone for the consequences of using it or for whether it serves any
  1438. # particular purpose or works at all, unless he says so in writing.  Refer
  1439. # to the Ghostscript General Public License for full details.
  1440. #
  1441. # Everyone is granted permission to copy, modify and redistribute
  1442. # Ghostscript, but only under the conditions described in the Ghostscript
  1443. # General Public License.  A copy of this license is supposed to have been
  1444. # given to you along with Ghostscript so you can know your rights and
  1445. # responsibilities.  It should be in a file named COPYING.  Among other
  1446. # things, the copyright notice and this notice must be preserved on all
  1447. # copies.
  1448.  
  1449. # Partial makefile for Ghostscript, common to all Unix configurations.
  1450.  
  1451. # This is the last part of the makefile for Unix configurations.
  1452. # Since Unix make doesn't have an 'include' facility, we concatenate
  1453. # the various parts of the makefile together by brute force (in tar_cat).
  1454.  
  1455. # The following prevents GNU make from constructing argument lists that
  1456. # include all environment variables, which can easily be longer than
  1457. # brain-damaged system V allows.
  1458.  
  1459. .NOEXPORT:
  1460.  
  1461. # -------------------------------- Library -------------------------------- #
  1462.  
  1463. ## The Unix platforms
  1464.  
  1465. # All reasonable Unix platforms.
  1466. unix__=gp_unix.$(OBJ)
  1467. unix_.dev: $(unix__)
  1468.     $(SHP)gssetmod unix_ $(unix__)
  1469.  
  1470. gp_unix.$(OBJ): gp_unix.c $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  1471.  $(stat__h) $(time__h)
  1472.  
  1473. # Brain-damaged System V platforms.
  1474. sysv__=gp_unix.$(OBJ) gp_sysv.$(OBJ)
  1475. sysv_.dev: $(sysv__)
  1476.     $(SHP)gssetmod sysv_ $(sysv__)
  1477.  
  1478. gp_sysv.$(OBJ): gp_sysv.c
  1479.  
  1480. # -------------------------- Auxiliary programs --------------------------- #
  1481.  
  1482. ansi2knr$(XE): ansi2knr.c
  1483.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  1484.  
  1485. echogs$(XE): echogs.c
  1486.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  1487.  
  1488. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  1489. # produces a buggy executable.
  1490. genarch$(XE): genarch.c
  1491.     $(CC) -o genarch$(XE) genarch.c
  1492.  
  1493. # ----------------------------- Main program ------------------------------ #
  1494.  
  1495. # Main program
  1496.  
  1497. ALLUNIX=gsmain.$(OBJ) $(LIB)
  1498.  
  1499. # Interpreter main program
  1500.  
  1501. GSUNIX=gs.$(OBJ) $(INT) $(ALLUNIX)
  1502.  
  1503. # The second call on echogs writes a \.  This is the only
  1504. # way to do it that works with all flavors of shell!
  1505. gs: $(GSUNIX) obj.tr lib.tr echogs
  1506.     ./echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs $(GSUNIX) >_temp_
  1507.     ./echogs -x 205c >>_temp_
  1508.     cat obj.tr >>_temp_
  1509.     cat lib.tr >>_temp_
  1510.     echo $(EXTRALIBS) -lm >>_temp_
  1511.     $(SH) <_temp_
  1512.  
  1513. # Installation
  1514.  
  1515. TAGS:
  1516.     etags -t *.c *.h
  1517.  
  1518. docdir=$(gsdatadir)/doc
  1519. exdir=$(gsdatadir)/examples
  1520. sysdir=$(gsdatadir)/system
  1521.  
  1522. install: gs
  1523.     -mkdir $(bindir)
  1524.     $(INSTALL_PROGRAM) gs $(bindir)
  1525.     $(INSTALL_PROGRAM) gsnd $(bindir)
  1526.     $(INSTALL_PROGRAM) bdftops $(bindir)
  1527.     $(INSTALL_PROGRAM) font2c $(bindir)
  1528.     $(INSTALL_PROGRAM) pfbtogs $(bindir)
  1529.     $(INSTALL_PROGRAM) showpbm $(bindir)
  1530.     -mkdir $(gsdatadir)
  1531.     $(INSTALL_DATA) README $(gsdatadir)
  1532.     $(INSTALL_DATA) gs_init.ps $(gsdatadir)
  1533.     $(INSTALL_DATA) gs_2asc.ps $(gsdatadir)
  1534.     $(INSTALL_DATA) gs_dps1.ps $(gsdatadir)
  1535.     $(INSTALL_DATA) gs_fonts.ps $(gsdatadir)
  1536.     $(INSTALL_DATA) gs_lev2.ps $(gsdatadir)
  1537.     $(INSTALL_DATA) gs_statd.ps $(gsdatadir)
  1538.     $(INSTALL_DATA) sym__enc.ps $(gsdatadir)
  1539.     $(INSTALL_DATA) quit.ps $(gsdatadir)
  1540.     $(INSTALL_DATA) Fontmap $(gsdatadir)
  1541.     $(INSTALL_DATA) uglyr.gsf $(gsdatadir)
  1542.     $(INSTALL_DATA) bdftops.ps $(gsdatadir)
  1543.     $(INSTALL_DATA) decrypt.ps $(gsdatadir)
  1544.     $(INSTALL_DATA) font2c.ps $(gsdatadir)
  1545.     $(INSTALL_DATA) impath.ps $(gsdatadir)
  1546.     $(INSTALL_DATA) landscap.ps $(gsdatadir)
  1547.     $(INSTALL_DATA) pfbtogs.ps $(gsdatadir)
  1548.     $(INSTALL_DATA) prfont.ps $(gsdatadir)
  1549.     $(INSTALL_DATA) pstoppm.ps $(gsdatadir)
  1550.     $(INSTALL_DATA) showpbm.ps $(gsdatadir)
  1551.     $(INSTALL_DATA) type1ops.ps $(gsdatadir)
  1552.     $(INSTALL_DATA) wrfont.ps $(gsdatadir)
  1553.     -mkdir $(docdir)
  1554.     $(INSTALL_DATA) NEWS $(docdir)
  1555.     $(INSTALL_DATA) history.doc $(docdir)
  1556.     $(INSTALL_DATA) drivers.doc $(docdir)
  1557.     $(INSTALL_DATA) fonts.doc $(docdir)
  1558.     $(INSTALL_DATA) hershey.doc $(docdir)
  1559.     $(INSTALL_DATA) humor.doc $(docdir)
  1560.     $(INSTALL_DATA) language.doc $(docdir)
  1561.     $(INSTALL_DATA) lib.doc $(docdir)
  1562.     $(INSTALL_DATA) make.doc $(docdir)
  1563.     $(INSTALL_DATA) psfiles.doc $(docdir)
  1564.     $(INSTALL_DATA) readme.doc $(docdir)
  1565.     $(INSTALL_DATA) use.doc $(docdir)
  1566.     -mkdir $(exdir)
  1567.     $(INSTALL_DATA) chess.ps $(exdir)
  1568.     $(INSTALL_DATA) cheq.ps $(exdir)
  1569.     $(INSTALL_DATA) colorcir.ps $(exdir)
  1570.     $(INSTALL_DATA) golfer.ps $(exdir)
  1571.     $(INSTALL_DATA) escher.ps $(exdir)
  1572.     $(INSTALL_DATA) snowflak.ps $(exdir)
  1573.     $(INSTALL_DATA) tiger.ps $(exdir)
  1574.